import { translate } from '@/utils/i18n'
export const formItems = [
  {
    filed: 'couponsName',
    type: 'input',
    label: translate('disCouponName')
  },
  {
    filed: 'couponsType',
    type: 'select',
    label: translate('disCouponType'),
    clearable: true,
    options: [
      { value: '0', label: translate('disCouponN') },
      { value: '1', label: translate('voucher') }
    ]
  },
  {
    filed: 'couponsChannel',
    type: 'select',
    label: translate('giveChannel'),
    clearable: true,
    options: [
      { value: '1', label: translate('userClaim') },
      { value: '2', label: translate('integralEx') },
      { value: '3', label: translate('dirMarketing') }
    ]
  },
  {
    filed: 'validityType',
    type: 'select',
    label: translate('indateType'),
    clearable: true,
    options: [
      { value: '0', label: translate('fixDate') },
      { value: '1', label: translate('getStart') }
    ]
  },
  {
    filed: 'stadiumId',
    type: 'select',
    label: translate('applyVenue'),
    clearable: true,
    options: []
  },
  {
    filed: 'itemsId',
    type: 'select',
    label: translate('applyProduct'),
    clearable: true,
    options: []
  },
  // {
  //   filed: 'orderType',
  //   type: 'select',
  //   label:translate('orderType'),
  //   clearable: true,
  //   options: []
  // },
  {
    filed: 'couponsStatus',
    type: 'select',
    label: translate('status'),
    clearable: true,
    options: [
      { value: '1', label: translate('qy') },
      { value: '0', label: translate('jy') }
    ]
  }
]
export const queryFormConfig = {
  formItems,
  online: true
}
